Skip to content

Commit

Permalink
decrypt function updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajan Joshi committed Feb 20, 2020
1 parent e5fd5da commit 62185d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/decryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func Decrypt(securemess string) (decodedmess string, err error) {
if len(strings.TrimSpace(securemess)) == 0 {
return "", errors.New("string is empty")
}
decodedStr := strings.Split(securemess, strconv.Itoa(encV1)+"||")
decodedStr := strings.Split(securemess, "||")
if len(decodedStr) == 2 {
ver, err := strconv.Atoi(decodedStr[0])
if err != nil {
Expand Down

0 comments on commit 62185d1

Please sign in to comment.