I used EasyCrypt library for get encryption key -
let crypto = EasyCrypt(secret: "MySecretKey", algorithm: .sha1) let result = cryp