Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _crypto = _interopRequireDefault(require("crypto"));
  7. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  8. function sha1(bytes) {
  9. if (Array.isArray(bytes)) {
  10. bytes = Buffer.from(bytes);
  11. } else if (typeof bytes === 'string') {
  12. bytes = Buffer.from(bytes, 'utf8');
  13. }
  14. return _crypto.default.createHash('sha1').update(bytes).digest();
  15. }
  16. var _default = sha1;
  17. exports.default = _default;