File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
vault-tool/src/Network/VaultTool Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import qualified Data.ByteString.Base64 as B64
3434import qualified Data.ByteString.Char8 as C8
3535import Data.Text (Text )
3636import qualified Data.Text as T
37- import Data.Text.Encoding (decodeLatin1 , encodeUtf8 )
37+ import Data.Text.Encoding (decodeUtf8 , encodeUtf8 )
3838import GHC.Generics (Generic )
3939
4040import Network.VaultTool.Internal (
@@ -110,7 +110,7 @@ encryptText :: VaultConnection Authenticated -> VaultMountedPath -> KeyName -> T
110110encryptText conn path key = encryptByteString conn path key . encodeUtf8
111111
112112decryptText :: VaultConnection Authenticated -> VaultMountedPath -> KeyName -> CipherText -> IO Text
113- decryptText conn path key = fmap decodeLatin1 . decryptByteString conn path key
113+ decryptText conn path key = fmap decodeUtf8 . decryptByteString conn path key
114114
115115newtype VaultCiphertext
116116 = VaultCiphertext { getCyphertext :: CipherText }
You can’t perform that action at this time.
0 commit comments