2020-02-03 05:00:36 +01:00
|
|
|
// Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved.
|
2019-07-16 14:20:51 +02:00
|
|
|
// Use of this source code is governed by an MIT license
|
|
|
|
// that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
import crypto.md5
|
|
|
|
|
|
|
|
fn test_crypto_md5() {
|
2019-08-03 07:48:58 +02:00
|
|
|
assert md5.sum('this is a md5 checksum.'.bytes()).hex() == '6fb421ff99036547655984da12973431'
|
2019-07-16 14:20:51 +02:00
|
|
|
}
|