onmyway133 / Arcane

:trident: CommonCrypto in Swift, and more
https://onmyway133.github.io/
Other
283 stars 22 forks source link

Refactor that using this is more natually #19

Closed wolfcon closed 6 years ago

wolfcon commented 6 years ago

Old method is weird.👻 Data generator by passing dot is more useful and flexible.👍 String should not write so many method. Just use data extension

base64
base64String
hexString

let developer choose.

let str = "aa"
str.MD5?.hexString
str.MD5?.base64String
str.MD5?.base64
wolfcon commented 6 years ago

AES is not changed yet

onmyway133 commented 6 years ago

@wolfcon Hi, thanks for the PR. I prefer adding extension methods based on existing ones instead of moving the code around