Cryptography algorithm PSD