CircuitPython/hashlib.py

changeset 7
e336d6afc5a6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/hashlib.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'hashlib' module.
+"""
+
+class sha1():
+    def __init__(self, data=None):
+        pass
+    
+    def update(self, data):
+        pass
+    
+    def digest(self):
+        pass
+
+class sha256():
+    def __init__(self, data=None):
+        pass
+    
+    def update(self, data):
+        pass
+    
+    def digest(self):
+        pass
+
+class md5():
+    def __init__(self, data=None):
+        pass
+    
+    def update(self, data):
+        pass
+    
+    def digest(self):
+        pass

eric ide

mercurial