<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
How about:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
1> lists:flatten([integer_to_list(V,16)||<<V>> <= crypto:hash(md5, "really long book title that goes on and on forever")]).
<div>"C72BFE8643B0156ACD809D87D51E726C"</div>
<div><br>
</div>
<div>OR</div>
<div><br>
</div>
<div>2>  binary_to_list(base64:encode(crypto:hash(md5, "really long book title that goes on and on forever"))).</div>
<span>"xyv+hkOwFWrNgJ2H1R5ybA=="</span><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> erlang-questions <erlang-questions-bounces@erlang.org> on behalf of Lloyd R. Prentice <lloyd@writersglen.com><br>
<b>Sent:</b> Friday, August 13, 2021 3:44 PM<br>
<b>To:</b> erlang-questions <erlang-questions@erlang.org><br>
<b>Subject:</b> Long string to short ID</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hello,<br>
<br>
What might be a nifty way to turn a long book title with spaces into a short human-readable ID?<br>
<br>
Thanks,<br>
<br>
LRP<br>
<br>
Sent from my iPad<br>
</div>
</span></font></div>
</body>
</html>