File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
cryptography/lib/src/cryptography Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ abstract class Cipher {
399399 String clearText, {
400400 required SecretKey secretKey,
401401 }) async {
402- final bytes = utf8.encode (clearText) as Uint8List ;
402+ final bytes = utf8.encode (clearText);
403403 final secretBox = await encrypt (
404404 bytes,
405405 secretKey: secretKey,
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ abstract class CipherWand extends Wand {
177177 /// }
178178 /// ```
179179 Future <SecretBox > encryptString (String clearText) async {
180- final bytes = utf8.encode (clearText) as Uint8List ;
180+ final bytes = utf8.encode (clearText);
181181 final secretBox = await encrypt (
182182 bytes,
183183 possibleBuffer: bytes,
You can’t perform that action at this time.
0 commit comments