From 589e24fc829e1a5ff9827985f453720a4a6c804e Mon Sep 17 00:00:00 2001 From: MDN Date: Sat, 2 Oct 2021 00:48:46 +0000 Subject: [CRON] sync translated content --- files/ko/_redirects.txt | 1 + files/ko/_wikihistory.json | 14 +++--- files/ko/web/api/crypto_property/index.html | 76 +++++++++++++++++++++++++++++ files/ko/web/api/window/crypto/index.html | 75 ---------------------------- 4 files changed, 84 insertions(+), 82 deletions(-) create mode 100644 files/ko/web/api/crypto_property/index.html delete mode 100644 files/ko/web/api/window/crypto/index.html (limited to 'files/ko') diff --git a/files/ko/_redirects.txt b/files/ko/_redirects.txt index bd1fe5c87a..4a61a4ea44 100644 --- a/files/ko/_redirects.txt +++ b/files/ko/_redirects.txt @@ -491,6 +491,7 @@ /ko/docs/Web/API/WebGL_API/Using_shaders_to_apply_color_in_WebGL /ko/docs/Web/API/WebGL_API/Tutorial/Using_shaders_to_apply_color_in_WebGL /ko/docs/Web/API/WebGL_API/Using_textures_in_WebGL /ko/docs/Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL /ko/docs/Web/API/Web_Workers_API/basic_usage /ko/docs/Web/API/Web_Workers_API/Using_web_workers +/ko/docs/Web/API/Window/crypto /ko/docs/Web/API/crypto_property /ko/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout /ko/docs/Web/API/setTimeout /ko/docs/Web/API/WindowTimers/setTimeout /ko/docs/Web/API/setTimeout /ko/docs/Web/API/XMLHttpRequest/timeout /ko/docs/Web/API/XMLHttpRequest/timeout_event diff --git a/files/ko/_wikihistory.json b/files/ko/_wikihistory.json index 95562d5437..bf71955309 100644 --- a/files/ko/_wikihistory.json +++ b/files/ko/_wikihistory.json @@ -7213,13 +7213,6 @@ "alattalatta" ] }, - "Web/API/Window/crypto": { - "modified": "2020-10-15T21:40:03.517Z", - "contributors": [ - "alattalatta", - "hoony" - ] - }, "Web/API/Window/customElements": { "modified": "2020-10-15T22:26:45.848Z", "contributors": [ @@ -7630,6 +7623,13 @@ "Sebuls" ] }, + "Web/API/crypto_property": { + "modified": "2020-10-15T21:40:03.517Z", + "contributors": [ + "alattalatta", + "hoony" + ] + }, "Web/API/notification": { "modified": "2019-09-10T05:52:41.419Z", "contributors": [ diff --git a/files/ko/web/api/crypto_property/index.html b/files/ko/web/api/crypto_property/index.html new file mode 100644 index 0000000000..be31ca5888 --- /dev/null +++ b/files/ko/web/api/crypto_property/index.html @@ -0,0 +1,76 @@ +--- +title: Window.crypto +slug: Web/API/crypto_property +tags: + - API + - HTML DOM + - Property + - Reference + - Window +translation_of: Web/API/Window/crypto +original_slug: Web/API/Window/crypto +--- +
{{APIRef}}
+ +

Window.crypto속성은 전역 객체인 {{domxref("Crypto")}} 객체를 반환합니다. Crypto 객체는 웹 페이지가 특정 암호학적 서비스에 접근할 수 있는 경로입니다. crypto 속성 자체는 읽기 전용이지만, 모든 메서드(와 자식 객체 {{domxref("SubtleCrypto")}})의 메서드)는 읽기 전용이 아니므로 {{glossary("polyfill", "폴리필")}}을 통한 공격에 취약합니다.

+ +

구문

+ +
var cryptoObj = window.crypto || window.msCrypto; // for IE 11
+
+ +

예제

+ +

다음 예제는 {{domxref("Window.crypto")}} 속성을 통해 {{domxref("Crypto.getRandomValues", "getRandomValues()")}} 메서드에 접근합니다.

+ +

JavaScript

+ +
genRandomNumbers = function getRandomNumbers() {
+  var array = new Uint32Array(10);
+  window.crypto.getRandomValues(array);
+
+  var randText = document.getElementById("myRandText");
+  randText.innerHTML = "The random numbers are: "
+  for (var i = 0; i < array.length; i++) {
+    randText.innerHTML += array[i] + " ";
+  }
+}
+ +

HTML

+ +
<p id="myRandText">The random numbers are: </p>
+<button type="button" onClick='genRandomNumbers()'>Generate 10 random numbers</button>
+ +

결과

+ +

{{EmbedLiveSample('예제')}}

+ +

명세

+ + + + + + + + + + + + + + +
명세상태비고
{{SpecName("Web Crypto API", "#dfn-GlobalCrypto", "Window.crypto")}}{{Spec2("Web Crypto API")}}Initial definition
+ +

브라우저 호환성

+ + + +

{{Compat("api.Window.crypto")}}

+ +

같이 보기

+ + diff --git a/files/ko/web/api/window/crypto/index.html b/files/ko/web/api/window/crypto/index.html deleted file mode 100644 index 1b43534adc..0000000000 --- a/files/ko/web/api/window/crypto/index.html +++ /dev/null @@ -1,75 +0,0 @@ ---- -title: Window.crypto -slug: Web/API/Window/crypto -tags: - - API - - HTML DOM - - Property - - Reference - - Window -translation_of: Web/API/Window/crypto ---- -
{{APIRef}}
- -

Window.crypto속성은 전역 객체인 {{domxref("Crypto")}} 객체를 반환합니다. Crypto 객체는 웹 페이지가 특정 암호학적 서비스에 접근할 수 있는 경로입니다. crypto 속성 자체는 읽기 전용이지만, 모든 메서드(와 자식 객체 {{domxref("SubtleCrypto")}})의 메서드)는 읽기 전용이 아니므로 {{glossary("polyfill", "폴리필")}}을 통한 공격에 취약합니다.

- -

구문

- -
var cryptoObj = window.crypto || window.msCrypto; // for IE 11
-
- -

예제

- -

다음 예제는 {{domxref("Window.crypto")}} 속성을 통해 {{domxref("Crypto.getRandomValues", "getRandomValues()")}} 메서드에 접근합니다.

- -

JavaScript

- -
genRandomNumbers = function getRandomNumbers() {
-  var array = new Uint32Array(10);
-  window.crypto.getRandomValues(array);
-
-  var randText = document.getElementById("myRandText");
-  randText.innerHTML = "The random numbers are: "
-  for (var i = 0; i < array.length; i++) {
-    randText.innerHTML += array[i] + " ";
-  }
-}
- -

HTML

- -
<p id="myRandText">The random numbers are: </p>
-<button type="button" onClick='genRandomNumbers()'>Generate 10 random numbers</button>
- -

결과

- -

{{EmbedLiveSample('예제')}}

- -

명세

- - - - - - - - - - - - - - -
명세상태비고
{{SpecName("Web Crypto API", "#dfn-GlobalCrypto", "Window.crypto")}}{{Spec2("Web Crypto API")}}Initial definition
- -

브라우저 호환성

- - - -

{{Compat("api.Window.crypto")}}

- -

같이 보기

- - -- cgit v1.2.3-54-g00ecf