Cody

# Problem 45362. RIPEMD160 Hash

Solution 3376633

Submitted on 25 Oct 2020 by Rafael S.T. Vieira
• Size: 39
• This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = 'My name is David Hill.'; y_correct = '372FF8C35C873D79312BFAF92BE55F7602164B1A'; assert(isequal(ripemd160(x),y_correct))

2   Pass
x = 'The way to get started is to quit talking and begin doing.'; y_correct = '6F96416D233B7C067450D1D18B81FC4A44E1C717'; assert(isequal(ripemd160(x),y_correct))

3   Pass
x = 'Tell me and I forget. Teach me and I remember. Involve me and I learn.'; y_correct = 'B0BBACB5B165097B5DCA7234C35384BC1687D9E0'; assert(isequal(ripemd160(x),y_correct))

4   Pass
x = 'People who succeed have momentum. The more they succeed, the more they want to succeed and the more they find a way to succeed. Similarly, when someone is failing, the tendency is to get on a downward spiral that can even become a self-fulfilling prophecy.'; y_correct = 'E0F1ED57289F3975DEB3E3CF40614D2DAD513C7B'; assert(isequal(ripemd160(x),y_correct))

5   Pass
x = 'The two operations of our understanding, intuition and deduction, on which alone we have said we must rely in the acquisition of knowledge.'; y_correct = 'BD31F5187B6ECD34B2BFC8255D9178AA9C862EF2'; assert(isequal(ripemd160(x),y_correct))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!