Codeigniter上的加密字符串 [英] Encryption string on Codeigniter
问题描述
只是想验证Codeigniter加密是否像这样。
hhNa0fUcOc3k0jUhPcRBJshpiXLpUSug + NhgPk89O7eSjerHk6go360U9rl8LazZo6DR6M1N4IqG0PYIwPyKhQ ==
这个字符串的结构总是有一个'+','='和'/'字符。只是想验证的事情,我才解析他们。有一种情况,其中当字符串被加密时,它可能包含除了'+,=,/'符号之外的特殊字符?只是一个头,我没有使用任何mcrypt除了CI之前指定的默认值。
这看起来像是 base-64编码字符串。 +
和 /
是有效字符, =
这将总是显示在结束。 +
, /
和 =
一个标准的base-64实现。
just wanted to verify if on Codeigniter Encryption say like this one
hhNa0fUcOc3k0jUhPcRBJshpiXLpUSug+NhgPk89O7eSjerHk6go360U9rl8LazZo6DR6M1N4IqG0PYIwPyKhQ==
Is the structure of this string always have a '+', '=' and a '/' character?. Just wanted to verify things before i parse them. Is there a case wherein when a string is encrypted it may contain special character other than '+, =, /' signs? Just a heads up, i didn't used any mcrypt thing other than the default specified on CI.
This seems like a base-64 encoded string. +
and /
are valid characters, and =
are padding which will always show up on the end. +
, /
and =
are the only special characters in a standard base-64 implementation.
这篇关于Codeigniter上的加密字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!