This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Telegraf = require('telegraf'); | |
| const fs = require('fs'); | |
| const ytdl = require('ytdl-core'); | |
| // DOC | |
| // add bot token in "config.json" | |
| // { | |
| // "token": "placeTokenHere" | |
| // } | |
| // npm install ytdl-core --save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Telegraf = require('telegraf'); | |
| const fs = require('fs'); | |
| const ytdl = require('ytdl-core'); | |
| // DOC | |
| // add bot token in "config.json" | |
| // { | |
| // "token": "placeTokenHere" | |
| // } | |
| // npm install ytdl-core --save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String klartext = jTextField1.getText(); | |
| int vers = jNumberField1.getInt(); | |
| int[] va = new int[klartext.length()]; | |
| if (vers>25) { | |
| vers= vers-25; | |
| } // end of if | |
| for (int i=0;i<va.length;i++) { | |
| va[i] = klartext.charAt(i); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner keyboard = new Scanner(System.in); | |
| System.out.println("Text eingeben..."); | |
| String text = keyboard.nextLine().toLowerCase(); | |
| char[] chartext = text.toCharArray(); | |
| char[] alphabet = "abcdefghijklmnopqrstuvwxyz".toCharArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class vigi { | |
| public static String vigenere(String text, String key, int mode) { | |
| text = text.toUpperCase(); | |
| text = text.replaceAll(" ", ""); | |
| key = key.toUpperCase(); | |
| String returnText = ""; | |
| for (int i = 0, j = 0; i < text.length(); i++, j++) { | |
| //i: Zähler für text; j: Zähler für key | |
| if (j == key.length()) { | |
| j = 0; |
NewerOlder