• This project
    • Loading...
  • Sign in

은승우 / LINEBOT

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • LINEBOT
  • node_modules
  • @root
  • pem
  • parser.js
  • 은승우's avatar
    all add · d8f4c3a1
    d8f4c3a1
    은승우 authored 2019-12-05 01:37:20 +0900
parser.js 265 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
'use strict';

var PEM = module.exports;

var Enc = require('./node/native.js');

PEM.parseBlock = function(str) {
	var der = str
		.split(/\n/)
		.filter(function(line) {
			return !/-----/.test(line);
		})
		.join('');
	return { bytes: Enc.base64ToBuf(der) };
};