Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. class strEncode {
  3. function StrToEncode($string) {
  4. $encoded = strtr(base64_encode(addslashes(gzcompress(serialize($string),9))), '+/=', '-_,');
  5. return $encoded;
  6. }
  7. function StrToDecode($encoded) {
  8. $decoded= unserialize(gzuncompress(stripslashes(base64_decode(strtr($encoded, '-_,', '+/=')))));
  9. return $decoded;
  10. }
  11. }
  12. $passwd = '111111';
  13. $spkey = strEncode::StrToEncode($passwd);
  14. $pass = md5($spkey);
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement