私はこれをPHPの暗号化方法で行う必要があります。 七面鳥このように私に与えられた例のコードの銀行決済モジュールは、暗号化します。 これをPHPコードに翻訳する手助けができますか?asp.netからphpへのエンコーディング
SHA1 sha1 = new SHA1CryptoServiceProvider();
byte[] notHashedBytes = System.Text.Encoding.ASCII.GetBytes(notHashedStr);
byte[] hashedByte = sha1.ComputeHash(notHashedBytes);
string hashedStr = System.Convert.ToBase64String(hashedByte);
return hashedStr;
私は間違っているかもしれませんが、SHA1CryptoServiceProvider()オブジェクトを含める必要があると思います。 –